export function call(url, params) {
	return new Promise((resolve, reject) => {
		// var formData = new FormData();
		// console.log(params, "params");
		// for (let i in params) {
		// 	formData.append(i, params[i]);
		// }
		uni.request({
			url: `${getApp().globalData.baseUrl}${url}`,
			header: {
				"Content-Type": "application/x-www-form-urlencoded"
			},
			data: params,
			method: 'POST',
			success(res) {
				resolve(res.data.result);
			},
			fail(error) {
				reject(error)
			}
		})
	})


}